package com.igeek.compus.backend.system.properties;

import java.util.Properties;

public enum WxConfig {

    INSTANCE;

    private Properties properties;

    public String getProperty(String key) {
        return properties.getProperty(key);
    }

    WxConfig() {
        try {
            properties = new Properties();
            properties.load(this.getClass().getClassLoader().getResourceAsStream("wx.properties"));
        }catch (Exception e) {
            e.printStackTrace();
        }
    }

    public static WxConfig getInstance() {
        return INSTANCE;
    }
}
